Integrand size = 21, antiderivative size = 63 \[ \int \tan (e+f x) \left (b (c \tan (e+f x))^n\right )^p \, dx=\frac {\operatorname {Hypergeometric2F1}\left (1,\frac {1}{2} (2+n p),\frac {1}{2} (4+n p),-\tan ^2(e+f x)\right ) \tan ^2(e+f x) \left (b (c \tan (e+f x))^n\right )^p}{f (2+n p)} \]
hypergeom([1, 1/2*n*p+1],[1/2*n*p+2],-tan(f*x+e)^2)*tan(f*x+e)^2*(b*(c*tan (f*x+e))^n)^p/f/(n*p+2)
Time = 0.13 (sec) , antiderivative size = 61, normalized size of antiderivative = 0.97 \[ \int \tan (e+f x) \left (b (c \tan (e+f x))^n\right )^p \, dx=\frac {\operatorname {Hypergeometric2F1}\left (1,1+\frac {n p}{2},2+\frac {n p}{2},-\tan ^2(e+f x)\right ) \tan ^2(e+f x) \left (b (c \tan (e+f x))^n\right )^p}{f (2+n p)} \]
(Hypergeometric2F1[1, 1 + (n*p)/2, 2 + (n*p)/2, -Tan[e + f*x]^2]*Tan[e + f *x]^2*(b*(c*Tan[e + f*x])^n)^p)/(f*(2 + n*p))
Time = 0.34 (sec) , antiderivative size = 63, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {3042, 4142, 2030, 3042, 3957, 278}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \tan (e+f x) \left (b (c \tan (e+f x))^n\right )^p \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \tan (e+f x) \left (b (c \tan (e+f x))^n\right )^pdx\) |
\(\Big \downarrow \) 4142 |
\(\displaystyle (c \tan (e+f x))^{-n p} \left (b (c \tan (e+f x))^n\right )^p \int \tan (e+f x) (c \tan (e+f x))^{n p}dx\) |
\(\Big \downarrow \) 2030 |
\(\displaystyle \frac {(c \tan (e+f x))^{-n p} \left (b (c \tan (e+f x))^n\right )^p \int (c \tan (e+f x))^{n p+1}dx}{c}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {(c \tan (e+f x))^{-n p} \left (b (c \tan (e+f x))^n\right )^p \int (c \tan (e+f x))^{n p+1}dx}{c}\) |
\(\Big \downarrow \) 3957 |
\(\displaystyle \frac {(c \tan (e+f x))^{-n p} \left (b (c \tan (e+f x))^n\right )^p \int \frac {(c \tan (e+f x))^{n p+1}}{\tan ^2(e+f x) c^2+c^2}d(c \tan (e+f x))}{f}\) |
\(\Big \downarrow \) 278 |
\(\displaystyle \frac {\tan ^2(e+f x) \operatorname {Hypergeometric2F1}\left (1,\frac {1}{2} (n p+2),\frac {1}{2} (n p+4),-\tan ^2(e+f x)\right ) \left (b (c \tan (e+f x))^n\right )^p}{f (n p+2)}\) |
(Hypergeometric2F1[1, (2 + n*p)/2, (4 + n*p)/2, -Tan[e + f*x]^2]*Tan[e + f *x]^2*(b*(c*Tan[e + f*x])^n)^p)/(f*(2 + n*p))
3.5.17.3.1 Defintions of rubi rules used
Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> Simp[a^p*(( c*x)^(m + 1)/(c*(m + 1)))*Hypergeometric2F1[-p, (m + 1)/2, (m + 1)/2 + 1, ( -b)*(x^2/a)], x] /; FreeQ[{a, b, c, m, p}, x] && !IGtQ[p, 0] && (ILtQ[p, 0 ] || GtQ[a, 0])
Int[(Fx_.)*(v_)^(m_.)*((b_)*(v_))^(n_), x_Symbol] :> Simp[1/b^m Int[(b*v) ^(m + n)*Fx, x], x] /; FreeQ[{b, n}, x] && IntegerQ[m]
Int[((b_.)*tan[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[b/d Subst[Int [x^n/(b^2 + x^2), x], x, b*Tan[c + d*x]], x] /; FreeQ[{b, c, d, n}, x] && !IntegerQ[n]
Int[(u_.)*((b_.)*((c_.)*tan[(e_.) + (f_.)*(x_)])^(n_))^(p_), x_Symbol] :> S imp[b^IntPart[p]*((b*(c*Tan[e + f*x])^n)^FracPart[p]/(c*Tan[e + f*x])^(n*Fr acPart[p])) Int[ActivateTrig[u]*(c*Tan[e + f*x])^(n*p), x], x] /; FreeQ[{ b, c, e, f, n, p}, x] && !IntegerQ[p] && !IntegerQ[n] && (EqQ[u, 1] || Ma tchQ[u, ((d_.)*(trig_)[e + f*x])^(m_.) /; FreeQ[{d, m}, x] && MemberQ[{sin, cos, tan, cot, sec, csc}, trig]])
\[\int \tan \left (f x +e \right ) \left (b \left (c \tan \left (f x +e \right )\right )^{n}\right )^{p}d x\]
\[ \int \tan (e+f x) \left (b (c \tan (e+f x))^n\right )^p \, dx=\int { \left (\left (c \tan \left (f x + e\right )\right )^{n} b\right )^{p} \tan \left (f x + e\right ) \,d x } \]
\[ \int \tan (e+f x) \left (b (c \tan (e+f x))^n\right )^p \, dx=\int \left (b \left (c \tan {\left (e + f x \right )}\right )^{n}\right )^{p} \tan {\left (e + f x \right )}\, dx \]
\[ \int \tan (e+f x) \left (b (c \tan (e+f x))^n\right )^p \, dx=\int { \left (\left (c \tan \left (f x + e\right )\right )^{n} b\right )^{p} \tan \left (f x + e\right ) \,d x } \]
\[ \int \tan (e+f x) \left (b (c \tan (e+f x))^n\right )^p \, dx=\int { \left (\left (c \tan \left (f x + e\right )\right )^{n} b\right )^{p} \tan \left (f x + e\right ) \,d x } \]
Timed out. \[ \int \tan (e+f x) \left (b (c \tan (e+f x))^n\right )^p \, dx=\int \mathrm {tan}\left (e+f\,x\right )\,{\left (b\,{\left (c\,\mathrm {tan}\left (e+f\,x\right )\right )}^n\right )}^p \,d x \]